package com.cooge.collection.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cooge.collection.dao.EpisodeDao;
import com.cooge.collection.pojo.Episode;
import com.cooge.collection.service.EpisodeService;
@Service
public class EpisodeServiceImpl implements EpisodeService {
	
	@Autowired
	EpisodeDao episodeDao;

	@Override
	public Episode add(Episode episode) {
		return episodeDao.save(episode);
		
	}

	@Override
	public Episode getById(Long id) {
		return episodeDao.get(id);
	}

	@Override
	public List<Episode> getByList(Episode episode) {
		return episodeDao.getList(episode);
	}

}
